import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    component: () => import("../views/Home.vue"),
    children: [
      {
        path: "/",
        redirect: '/home',
      },
      {
        path: '/map',
        component:()=>import('../components/Map.vue')
      },
      {
        path: "/home",
        component: () => import("../views/Daily_business/MainDaily.vue"),
      
        children: [
          {
            path: "/home",
            redirect: 'daily',
          },
          {
            path: "daily",
            component: () => import("../views/Daily_business/Daily/daily.vue")

          },
          {
            path: "alarm",
            component: () => import("../views/Daily_business/Daily/alarm.vue")
          },
        ]
      },
      // {
      //   path: "/mainmeteorological",
      //   component: () => import("../views/MeteorologicalInformation/MainMeteorological.vue"),
      //   children: [
      //     {
      //       path: "/mainmeteorological",
      //       redirect: 'urbanforecast',
      //     },
      //     {
      //       path: "urbanforecast",
      //       component: () => import("../views/MeteorologicalInformation/Meteorological/UrbanForecast.vue")

      //     },
      //     {
      //       path: "townshipforecast",
      //       component: () => import("../views/MeteorologicalInformation/Meteorological/TownshipForecast.vue")
      //     },
      //     {
      //       path: "regionalautomaticstation",
      //       component: () => import("../views/MeteorologicalInformation/Meteorological/RegionalAutomaticStation.vue")
      //     },
      //     {
      //       path: "radarchart",
      //       component: () => import("../views/MeteorologicalInformation/Meteorological/RadarChart.vue")
      //     },
      //     {
      //       path: "networkingradar",
      //       component: () => import("../views/MeteorologicalInformation/Meteorological/NetworkingRadar.vue")
      //     },
      //     {
      //       path: "satellite",
      //       component: () => import("../views/MeteorologicalInformation/Meteorological/Satellite.vue")
      //     },
      //     {
      //       path: "historicaldata",
      //       component: () => import("../views/MeteorologicalInformation/Meteorological/HistoricalData.vue")
      //     },
      //     {
      //       path: "refinemesh",
      //       component: () => import("../views/MeteorologicalInformation/Meteorological/RefineMesh.vue")
      //     },
      //     {
      //       path: "warningsignal",
      //       component: () => import("../views/MeteorologicalInformation/Meteorological/WarningSignal.vue")
      //     },
      //   ]
      // },
      // {
      //   path: "/forecastproduction",
      //   component: () => import("../views/ForecastProduction/MainForecastProduction.vue"),
      //   children: [
      //     {
      //       path: "/forecastproduction",
      //       redirect: 'forecastproduction1',
      //     },
      //     {
      //       path: "forecastproduction1",
      //       component: () => import("../views/ForecastProduction/Forecast/ForecastProduction1.vue")

      //     },
      //     {
      //       path: "urbannewspaper",
      //       component: () => import("../views/ForecastProduction/Forecast/UrbanNewspaper.vue")
      //     },
      //     {
      //       path: "document",
      //       component: () => import("../views/ForecastProduction/Forecast/Document.vue")
      //     },
      //     {
      //       path: "forecast",
      //       component: () => import("../views/ForecastProduction/Forecast/Forecast.vue")
      //     },
      //   ]
      // },
      // {
      //   path: "/emergencymeteorology",
      //   component: () => import("../views/EmergencyMeteorology/MainEmergencyMeteorology.vue"),
      //   children: [
      //     {
      //       path: "/emergencymeteorology",
      //       redirect: 'emergencyservices',
      //     },
      //     {
      //       path: "emergencyservices",
      //       component: () => import("../views/EmergencyMeteorology/Emergency/EmergencyServices.vue")

      //     },
      //     {
      //       path: "emergencyhistory",
      //       component: () => import("../views/EmergencyMeteorology/Emergency/EmergencyHistory.vue")
      //     },
      //     {
      //       path: "urbanfires",
      //       component: () => import("../views/EmergencyMeteorology/Emergency/UrbanFires.vue")
      //     },
      //     {
      //       path: "importantgoal",
      //       component: () => import("../views/EmergencyMeteorology/Emergency/ImportantGoal.vue")
      //     },
      //   ]
      // },
      // {
      //   path: "/geologicaldisaster",
      //   component: () => import("../views/GeologicalDisaster/MainGeologicalDisaster.vue"),
      //   children: [
      //     {
      //       path: "/geologicaldisaster",
      //       redirect: 'shortimpending',
      //     },
      //     {
      //       path: "shortimpending",
      //       component: () => import("../views/GeologicalDisaster/Geological/Short-Impending.vue")

      //     },
      //     {
      //       path: "shortterm",
      //       component: () => import("../views/GeologicalDisaster/Geological/Short-Term.vue")
      //     },
      //     {
      //       path: "mediumshortterm",
      //       component: () => import("../views/GeologicalDisaster/Geological/Medium-Short-Term.vue")
      //     },
      //     {
      //       path: "longterm",
      //       component: () => import("../views/GeologicalDisaster/Geological/Long-Term.vue")
      //     },
      //     {
      //       path: "warningrelease",
      //       component: () => import("../views/GeologicalDisaster/Geological/WarningRelease.vue")
      //     },
      //     {
      //       path: "alertquery",
      //       component: () => import("../views/GeologicalDisaster/Geological/AlertQuery.vue")
      //     },
      //     {
      //       path: "disastermanagement",
      //       component: () => import("../views/GeologicalDisaster/Geological/DisasterManagement.vue")
      //     },
      //     {
      //       path: "disasterquery",
      //       component: () => import("../views/GeologicalDisaster/Geological/DisasterQuery.vue")
      //     },
      //     {
      //       path: "disaterstatistics",
      //       component: () => import("../views/GeologicalDisaster/Geological/DisaterStatistics.vue")
      //     },
      //     {
      //       path: "modelmanagement",
      //       component: () => import("../views/GeologicalDisaster/Geological/ModelManagement.vue")
      //     },
      //     {
      //       path: "geologicalanalysis",
      //       component: () => import("../views/GeologicalDisaster/Geological/GeologicalAnalysis.vue")
      //     },
      //   ]
      // },
      // {
      //   path: "/emergencymeteorology",
      //   component: () => import("../views/EmergencyMeteorology/MainEmergencyMeteorology.vue"),
      //   children: [
      //     {
      //       path: "/emergencymeteorology",
      //       redirect: 'emergencyservices',
      //     },
      //     {
      //       path: "emergencyservices",
      //       component: () => import("../views/EmergencyMeteorology/Emergency/EmergencyServices.vue")

      //     },
      //     {
      //       path: "emergencyhistory",
      //       component: () => import("../views/EmergencyMeteorology/Emergency/EmergencyHistory.vue")
      //     },
      //     {
      //       path: "urbanfires",
      //       component: () => import("../views/EmergencyMeteorology/Emergency/UrbanFires.vue")
      //     },
      //     {
      //       path: "importantgoal",
      //       component: () => import("../views/EmergencyMeteorology/Emergency/ImportantGoal.vue")
      //     },
      //   ]
      // },
      // {
      //   path: "/flood",
      //   component: () => import("../views/TorrentialFlood/MainTorrentialFlood.vue"),
      //   children: [
      //     {
      //       path: "/flood",
      //       redirect: 'floodwarning',
      //     },
      //     {
      //       path: "floodwarning",
      //       component: () => import("../views/TorrentialFlood/Flood/FloodWarning.vue")
      //     },
      //     {
      //       path: "warningrelease",
      //       component: () => import("../views/TorrentialFlood/Flood/WarningRelease.vue")
      //     },
      //     {
      //       path: "alertquery",
      //       component: () => import("../views/TorrentialFlood/Flood/AlertQuery.vue")
      //     },
      //     {
      //       path: "warningparameters",
      //       component: () => import("../views/TorrentialFlood/Flood/WarningParameters.vue")
      //     },
      //     {
      //       path: "disasterquery",
      //       component: () => import("../views/TorrentialFlood/Flood/DisasterQuery.vue")
      //     },
      //     {
      //       path: "historicaldisaster",
      //       component: () => import("../views/TorrentialFlood/Flood/HistoricalDisaster.vue")
      //     },
      //     {
      //       path: "rainfallanalysis",
      //       component: () => import("../views/TorrentialFlood/Flood/RainfallAnalysis.vue")
      //     },
      //     {
      //       path: "raincondition",
      //       component: () => import("../views/TorrentialFlood/Flood/RainCondition.vue")
      //     },
      //     {
      //       path: "floodprevention",
      //       component: () => import("../views/TorrentialFlood/Flood/FloodPrevention.vue")
      //     },
      //     {
      //       path: "inundationanalysis",
      //       component: () => import("../views/TorrentialFlood/Flood/InundationAnalysis.vue")
      //     },
      //     {
      //       path: "reservoircapacityincrease",
      //       component: () => import("../views/TorrentialFlood/Flood/ReservoirCapacityIncrease.vue")
      //     },
      //     {
      //       path: "waterInflowforecast",
      //       component: () => import("../views/TorrentialFlood/Flood/WaterInflowForecast.vue")
      //     },
      //     {
      //       path: "floodpeakforecast",
      //       component: () => import("../views/TorrentialFlood/Flood/FloodPeakForecast.vue")
      //     },
      //     {
      //       path: "reservoirirrigationindex",
      //       component: () => import("../views/TorrentialFlood/Flood/ReservoirIrrigationIndex.vue")
      //     },
      //     {
      //       path: "rivermanagement",
      //       component: () => import("../views/TorrentialFlood/Flood/RiverManagement.vue")
      //     },
      //     {
      //       path: "watershedmanagement",
      //       component: () => import("../views/TorrentialFlood/Flood/WatershedManagement.vue")
      //     },
      //     {
      //       path: "hydrologicalstationmanagement",
      //       component: () => import("../views/TorrentialFlood/Flood/HydrologicalStationManagement.vue")
      //     },
      //     {
      //       path: "managementofreservoirirrigationarea",
      //       component: () => import("../views/TorrentialFlood/Flood/ManagementOfReservoirIrrigationArea")
      //     },
      //   ]
      // },
      // {
      //   path: "/fire",
      //   component: () => import("../views/ForestFire/MainForestFire.vue"),
      //   children: [
      //     {
      //       path: "/fire",
      //       redirect: 'fireriskforecast',
      //     },
      //     {
      //       path: "fireriskforecast",
      //       component: () => import("../views/ForestFire/Fire/FireRiskForecast.vue")

      //     },
      //     {
      //       path: "fireinsurancerelease",
      //       component: () => import("../views/ForestFire/Fire/FireInsuranceRelease.vue")

      //     },
      //     {
      //       path: "fireinsurancehistory",
      //       component: () => import("../views/ForestFire/Fire/FireInsuranceHistory.vue")
      //     },
      //     {
      //       path: "ignitionpoint",
      //       component: () => import("../views/ForestFire/Fire/IgnitionPoint.vue")
      //     },
      //     {
      //       path: "insectpest",
      //       component: () => import("../views/ForestFire/Fire/InsectPest.vue")
      //     },
      //     {
      //       path: "forestrypests",
      //       component: () => import("../views/ForestFire/Fire/ForestryPests.vue")
      //     },
      //     {
      //       path: "specialservices",
      //       component: () => import("../views/ForestFire/Fire/SpecialServices.vue")
      //     },
      //     {
      //       path: "historicalfires",
      //       component: () => import("../views/ForestFire/Fire/HistoricalFires.vue")
      //     },
      //     {
      //       path: "historicalfreinquiry",
      //       component: () => import("../views/ForestFire/Fire/HistoricalFreInquiry.vue")
      //     },
      //   ]
      // },
      // {
      //   path: "/environmental",
      //   component: () => import("../views/EnvironmentalMeteorology/MainEnvironmentalMeteorology.vue"),
      //   children: [
      //     {
      //       path: "/environmental",
      //       redirect: 'environmentalmonitoring',
      //     },
      //     {
      //       path: "environmentalmonitoring",
      //       component: () => import("../views/EnvironmentalMeteorology/Environmental/EnvironmentalMonitoring.vue")
      //     },
      //     {
      //       path: "weathermonitor",
      //       component: () => import("../views/EnvironmentalMeteorology/Environmental/WeatherMonitor.vue")
      //     },
      //     {
      //       path: "meteorologicalproducts",
      //       component: () => import("../views/EnvironmentalMeteorology/Environmental/MeteorologicalProducts.vue")
      //     },
      //     {
      //       path: "environmentproducts",
      //       component: () => import("../views/EnvironmentalMeteorology/Environmental/EnvironmentProducts.vue")
      //     },
      //   ]
      // },
      // {
      //   path: "/water",
      //   component: () => import("../views/Waterlogging/MainWaterlogging.vue"),
      //   children: [
      //     {
      //       path: "/water",
      //       redirect: 'waterlogginglevel',
      //     },
      //     {
      //       path: "waterlogginglevel",
      //       component: () => import("../views/Waterlogging/Water/WaterloggingLevel.vue")
      //     },
      //     {
      //       path: "historyofwaterlogging",
      //       component: () => import("../views/Waterlogging/Water/HistoryOfWaterlogging.vue")
      //     },
      //     {
      //       path: "factorsettings",
      //       component: () => import("../views/Waterlogging/Water/FactorSettings.vue")
      //     },
      //     {
      //       path: "waterloggingpoints",
      //       component: () => import("../views/Waterlogging/Water/WaterloggingPoints.vue")
      //     },
      //     {
      //       path: "catchmentarea",
      //       component: () => import("../views/Waterlogging/Water/CatchmentArea.vue")
      //     },
      //   ]
      // },
      // {
      //   path: "/agriculture",
      //   component: () => import("../views/Agriculture/MainAgriculture.vue"),
      //   children: [
      //     {
      //       path: "/agriculture",
      //       redirect: 'agrometeorological',
      //     },
      //     {
      //       path: "agrometeorological",
      //       component: () => import("../views/Agriculture/agriculture/Agrometeorological.vue")
      //     },
      //     {
      //       path: "agriculturalgasforecast",
      //       component: () => import("../views/Agriculture/agriculture/AgriculturalGasForecast.vue")
      //     },
      //     {
      //       path: "soil",
      //       component: () => import("../views/Agriculture/agriculture/Soil.vue")
      //     },
      //     {
      //       path: "agriculturaldivision",
      //       component: () => import("../views/Agriculture/agriculture/AgriculturalDivision.vue")
      //     },
      //     {
      //       path: "disasterassessment",
      //       component: () => import("../views/Agriculture/agriculture/DisasterAssessment.vue")
      //     },
      //     {
      //       path: "product",
      //       component: () => import("../views/Agriculture/agriculture/Product.vue")
      //     },
      //   ]
      // },
      // {
      //   path: "/tourismmeteorology",
      //   component: () => import("../views/TourismMeteorology/MainTourism.vue"),
      //   children:[
      //       {
      //         path: "/tourismmeteorology",
      //         redirect: 'scenicSpotforecast',
      //       },
      //       {
      //         path: "scenicSpotforecast",
      //         component: () => import("../views/TourismMeteorology/Tourism/ScenicSpotForecast.vue")  
      //       },
      //       {
      //         path: "scenicSpotforecastquery",
      //         component: () => import("../views/TourismMeteorology/Tourism/ScenicSpotForecastQuery.vue")  
      //       },
      //       {
      //         path: "thematicservice",
      //         component: () => import("../views/TourismMeteorology/Tourism/ThematicService.vue")  
      //       },
      //       {
      //         path: "landscapeforecast",
      //         component: () => import("../views/TourismMeteorology/Tourism/LandscapeForecast.vue")  
      //       },
      //       {
      //         path: "landscapeforecastquery",
      //         component: () => import("../views/TourismMeteorology/Tourism/LandscapeForecastQuery.vue")  
      //       },
      //       {
      //         path: "scenicgeologicalhazard",
      //         component: () => import("../views/TourismMeteorology/Tourism/ScenicGeologicalHazard.vue")  
      //       },
      //       {
      //         path: "scenicforestfireinsurance",
      //         component: () => import("../views/TourismMeteorology/Tourism/ScenicForestFireInsurance.vue")  
      //       },
      //       {
      //         path: "scenicmountainflooddisaster",
      //         component: () => import("../views/TourismMeteorology/Tourism/ScenicMountainFloodDisaster.vue")  
      //       },
      //   ]
      // },
      // {
      //   path: "/electricmeteorology",
      //   component: () => import("../views/ElectricMeteorology/MainElectric.vue"),
      //   children:[
      //       {
      //         path: "/electricmeteorology",
      //         redirect: 'loadforecasting',
      //       },
      //       {
      //         path: "loadforecasting",
      //         component: () => import("../views/ElectricMeteorology/Electric/LoadForecasting.vue") 
      //       },
      //       {
      //         path: "loadquery",
      //         component: () => import("../views/ElectricMeteorology/Electric/LoadQuery.vue") 
      //       },
      //       {
      //         path: "meteorologicalinformationquery",
      //         component: () => import("../views/ElectricMeteorology/Electric/MeteorologicalInformationQuery.vue") 
      //       },
      //   ]
      // },
      // {
      //   path: "/towermeteorology",
      //   component: () => import("../views/TowerMeteorology/MainTower.vue"),
      //   children:[
      //       {
      //         path: "/towermeteorology",
      //         redirect: 'meteorologicalwarning',
      //       },
      //       {
      //         path: "meteorologicalwarning",
      //         component: () => import("../views/TowerMeteorology/Tower/MeteorologicalWarning.vue") 
      //       },
      //       {
      //         path: "urbanwaterlogging",
      //         component: () => import("../views/TowerMeteorology/Tower/UrbanWaterlogging.vue")  
      //       },
      //       {
      //         path: "mountainflooddisaster",
      //         component: () => import("../views/TowerMeteorology/Tower/MountainFloodDisaster.vue")  
      //       },
      //       {
      //         path: "meteorologicalinformationquery",
      //         component: () => import("../views/TowerMeteorology/Tower/MeteorologicalInformationQuery.vue")  
      //       },
      //   ]
      // },
      // {
      //   path: "/meteorologicaindex",
      //   component: () => import("../views/MeteorologicaIndex/MainMeteorologicalIndex.vue"),
      //   children:[
      //       {
      //         path: "/meteorologicaindex",
      //         redirect: 'exponentialprediction',
      //       },
      //       {
      //         path: "exponentialprediction",
      //         component: () => import("../views/MeteorologicaIndex/Index/ExponentialPrediction.vue")  
      //       },
      //       {
      //         path: "exponentialpredictionquery",
      //         component: () => import("../views/MeteorologicaIndex/Index/ExponentialPredictionQuery.vue")  
      //       },
      //   ]
      // },
      // {
      //   path: "/lightningwarning",
      //   component: () => import("../views/LightningWarning/MainLightningWarning.vue"),
      //   children:[
      //       {
      //         path: "/lightningwarning",
      //         redirect: 'monitoringletter',
      //       },
      //       {
      //         path: "monitoringletter",
      //         component: () => import("../views/LightningWarning/Lightning/MonitoringLetter.vue")  
      //       },
      //       {
      //         path: "potentialanalysis",
      //         component: () => import("../views/LightningWarning/Lightning/PotentialAnalysis.vue")  
      //       },
      //       {
      //         path: "potentialprediction",
      //         component: () => import("../views/LightningWarning/Lightning/PotentialPrediction.vue")  
      //       },
      //       {
      //         path: "shortwarning",
      //         component: () => import("../views/LightningWarning/Lightning/ShortWarning.vue")  
      //       },
      //       {
      //         path: "productquery",
      //         component: () => import("../views/LightningWarning/Lightning/ProductQuery.vue")  
      //       },
      //   ]
      // },
      // {
      //   path: "/backgroundmanagement",
      //   component: () => import("../views/BackgroundManagement/MainManagement.vue"),
      //   children:[
      //       {
      //         path: "/backgroundmanagement",
      //         redirect: 'mapoperation',
      //       },
      //       {
      //         path: "mapoperation",
      //         component: () => import("../views/BackgroundManagement/Management/MapOperation.vue")  
      //       },
      //       {
      //         path: "personnelmanagement",
      //         component: () => import("../views/BackgroundManagement/Management/PersonnelManagement.vue")  
      //       },
      //       {
      //         path: "usermanagement",
      //         component: () => import("../views/BackgroundManagement/Management/UserManagement.vue")  
      //       },
      //       {
      //         path: "productmanagement",
      //         component: () => import("../views/BackgroundManagement/Management/ProductManagement.vue")  
      //       },
      //       {
      //         path: "databasemanagement",
      //         component: () => import("../views/BackgroundManagement/Management/DatabaseManagement.vue")  
      //       },
      //       {
      //         path: "monitoringmanagement",
      //         component: () => import("../views/BackgroundManagement/Management/MonitoringManagement.vue")  
      //       },
      //       {
      //         path: "businessmanagement",
      //         component: () => import("../views/BackgroundManagement/Management/BusinessManagement.vue")  
      //       },
      //   ]
      // },
    ]
  }

];

const router = new VueRouter({
  routes,
});

export default router;